package eop.project

class Volcano {
	String volcanoName
	String volcanoType
	String volcanicRef
	String status
		
	Location location
	static hasMany=[eruptions:Eruption]
	
	static constraints = {
		volcanoName(nullable:false)
		volcanoType(nullable:true)
		volcanicRef(nullable:true)
		status(nullable:true)
		location(nullable:true)
	}
	
	public String toString(){
		return "$volcanoName, $location"
	}
}
